//
//  SortLayout.m
//  TasteEnjoy
//
//  Created by XuRui on 16/4/19.
//  Copyright © 2016年 XuRui. All rights reserved.
//

#import "SortLayout.h"

@implementation SortLayout


#pragma mark - ------------ 设置layout ---------------
- (instancetype)init
{
    self = [super init];
    if (self) {
        
        self.itemSize = CGSizeMake(SCREEN_WIDTH / 4 , 220 / 2);
        //4列间距为0  具体边缘值去cell里设置
        self.minimumInteritemSpacing = 0;
        //两行间距10
        self.minimumLineSpacing = 0;
        
        //分区边缘距离
       // self.sectionInset = UIEdgeInsetsMake(20, 20, 20, 20);
        
        //头部
     self.headerReferenceSize = CGSizeMake(SCREEN_WIDTH, 60);
        
    }
    return self;
}

@end
